import { message, Modal } from "ant-design-vue";

/** @name  toast app吐司
 * @param msg 要显示的信息
 */
export const toast = (msg: string) => {
  message.info(msg);
};
/** @name  &alert app吐司
 * @param msg 要显示的信息
 */
export const $alert = (msg: string) => {
  Modal.error({
    centered: true,
    closable: true,
    iconType:undefined,
    mask:true,
    cancelText: "关闭",
    okText: "确定",
    title: "一个弹框！",
    cancelButtonProps: {
      type: "primary",
    },
  });
};
